Skip to content

bpo-45067 - Verify the version of ncurses for extended color support feature usage.#28260

Merged
orsenthil merged 5 commits into
python:mainfrom
orsenthil:issue45067
Sep 9, 2021
Merged

bpo-45067 - Verify the version of ncurses for extended color support feature usage.#28260
orsenthil merged 5 commits into
python:mainfrom
orsenthil:issue45067

Conversation

@orsenthil

@orsenthil orsenthil commented Sep 9, 2021

Copy link
Copy Markdown
Member
[bpo-45067](https://bugs.python.org/issue45067): Fix ncurses compilation in CentOS7. Verify ncurses version for extended color content support.

The function extended_color_content was introduced in 2017.
The ncurses-devel package in CentOS 7 had a older version ncurses resulted in
compilation error. For compiling ncurses with extended color support, we
verify the version of the ncurses library.

https://bugs.python.org/issue45067

…of ncurses

for extended color support feature usage.

The function extended_color_content was introduced in 2017.  The ncurses-devel
package in CentOS 7 had a older version ncurses resulted in compilation error.
For compiling ncurses with extended color support, we verify the version of the
ncurses library.

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment at the #endif line does not match the current or new condition. Since I think that we do not want to repeat a large condition (which can out of sync again), would not be better to remove that comment?

Comment thread Modules/_cursesmodule.c Outdated
Senthil Kumaran and others added 3 commits September 9, 2021 10:52
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @orsenthil for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @orsenthil for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

@miss-islington

Copy link
Copy Markdown
Contributor

Sorry, @orsenthil, I could not cleanly backport this to 3.9 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 794430700defb913512f871b701a888aa730de81 3.9

@bedevere-bot

Copy link
Copy Markdown

GH-28263 is a backport of this pull request to the 3.10 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2021
…feature usage. (pythonGH-28260)

* issue45067 - Fix _curses compilation in CentOS 7. Verify the version of ncurses
for extended color support feature usage.

The function extended_color_content was introduced in 2017.  The ncurses-devel
package in CentOS 7 had a older version ncurses resulted in compilation error.
For compiling ncurses with extended color support, we verify the version of the
ncurses library.

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 7944307)

Co-authored-by: Senthil Kumaran <senthil@python.org>
miss-islington added a commit that referenced this pull request Sep 9, 2021
…feature usage. (GH-28260)

* issue45067 - Fix _curses compilation in CentOS 7. Verify the version of ncurses
for extended color support feature usage.

The function extended_color_content was introduced in 2017.  The ncurses-devel
package in CentOS 7 had a older version ncurses resulted in compilation error.
For compiling ncurses with extended color support, we verify the version of the
ncurses library.

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 7944307)

Co-authored-by: Senthil Kumaran <senthil@python.org>
pablogsal pushed a commit that referenced this pull request Sep 29, 2021
…feature usage. (GH-28260)

* issue45067 - Fix _curses compilation in CentOS 7. Verify the version of ncurses
for extended color support feature usage.

The function extended_color_content was introduced in 2017.  The ncurses-devel
package in CentOS 7 had a older version ncurses resulted in compilation error.
For compiling ncurses with extended color support, we verify the version of the
ncurses library.

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 7944307)

Co-authored-by: Senthil Kumaran <senthil@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants